﻿//
// GNS_DailyPlayDate.h
// MobileManage
//
// Created by MR.L on 16/2/17.
//
//

#ifndef __MobileManage__GNS_DailyPlayDate__
#define __MobileManage__GNS_DailyPlayDate__

#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "GNS_Calendar.h"
USING_NS_CC;
using namespace cocostudio::timeline;
using namespace ui;

class GNS_DailyPlayDate : public Layer
{
public:
    GNS_DailyPlayDate();
    ~GNS_DailyPlayDate();
    static GNS_DailyPlayDate* createLayer();
    virtual bool init();
    CREATE_FUNC(GNS_DailyPlayDate);
    void BtnCallBack(Ref *pSender , ui::Widget::TouchEventType type);
    void SetNodeName(std::string CsbName);
    void AcceptSeverDate();
	void SetProName(int agentCode);
    ListView * GameType;
    void SetSelTime(const int year,const int month,const int day){Year = year; Mon = month; Day = day;}
    void ClearProName(){if (pPlayName != nullptr) {pPlayName->setString("");}}
private:
    void TimeButtonCallBack(Ref * pSender,ui::Widget::TouchEventType type);
private:
    Node * pGNS_DailyPlayDate;
    GNS_Calendar * pCalendar;
    ListView * DataListView;
    Text * pPlayName;
    Text * TimeText;
    Text * TitleText;
    Text * GameName;
    int CurID;
    int Year;
    int Mon;
    int Day;
};

#endif /* defined(__MobileManage__GNS_DailyPlayDate__) */